package com.fs.console.yuezi.vo;

import lombok.Data;

/**
 * @author ACE
 * @desc 小程序柱状图扩展类
 * @creationTime 2019-08-15 15:05
 * @projectName yuezi-menu
 * @packageName com.fs.console.yuezi.vo
 */
@Data
public class HistogramVo {
    /**
     * 名称
     */
    private String name;

    private Double value;

    private String color;

    /**
     * if(value >= 70){
     *      this.color = "#43AD51";
     * }else
     */
    public HistogramVo(String name,Double value){
        if(value >= 50){
            this.color = "#FF8621";
        }else{
            this.color = "#E7E7E7";
        }
        this.name = name;
        this.value = value;
    }


    /**
     * 数据
     */
    //private HistogramDataVo data;
}
